import { defineStore } from 'pinia'
import MapView from '@arcgis/core/views/MapView'

export const useMapStore = defineStore('map', {
  state: () => ({
    mapView: null as MapView | null
  }),
  actions: {
    setMapView(view: MapView) {
      this.mapView = view
    }
  }
})